const roleList = {
  data: [{
    createTime: '2020-03-20 05:30:27',
    id: '1',
    roleName: '管理员',
    roleKey: 'admin',
    orderNum: '1',
    status: '1'
  }, {
    createTime: '2020-03-20 05:30:27',
    id: '2',
    roleName: '游客',
    roleKey: 'common',
    orderNum: '2',
    status: '1'
  }, {
    createTime: '2020-03-20 05:30:27',
    id: '3',
    roleName: '业务人员',
    roleKey: 'admin',
    orderNum: '3',
    status: '0'
  }]
}

module.exports = [
  // role查询所有
  {
    url: '/system/role/list',
    type: 'get',
    response: config => {
      return {
        code: 200,
        message: '操作成功',
        total: 2,
        data: roleList.data
      }
    }
  },
  // 修改用户
  {
    url: '/system/role',
    type: 'put',
    response: _ => {
      return {
        code: 200,
        message: '操作成功'
      }
    }
  },
  // 新增角色
  {
    url: '/system/role',
    type: 'post',
    response: _ => {
      return {
        code: 200,
        message: '操作成功'
      }
    }
  },
  // 修改角色状态
  {
    url: '/system/role/changeStatus',
    type: 'put',
    response: _ => {
      return {
        code: 200,
        message: '操作成功'
      }
    }
  },
  // 删除角色
  {
    url: '/system/role',
    type: 'delete',
    response: _ => {
      return {
        code: 200,
        message: '操作成功'
      }
    }
  }
]
